#pragma once

#include <typedef.h>
//
#include <protocol.hpp>
#include <utils.hpp>

class UdpSender
{
public:
	UdpSender(const char* ip, int port);
	virtual ~UdpSender();
	void SendData(uint16_t dataType, char* data, int size);

private:
	int m_SocketId;
	char* m_BuffSend;
	int m_SizeSend;
	uint16_t m_DataSeqSend;
	uint16_t m_DataTypeSend;
	Protocol m_Protocol;
	BuffFifo m_BuffFifo;
	struct sockaddr_in m_ServAddr;
};